import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import {RouterModule, Routes} from '@angular/router';
import { HttpModule,JsonpModule ,Http} from '@angular/http';
import {ReactiveFormsModule, FormsModule} from '@angular/forms';
import {UserMessageComponent} from "./components/user-message-component";
import {CommonModule} from "@angular/common";
import {userRoutes} from "./user.routes";
import {PersonalMessageComponent} from "./components/personal-message";
import {UserService} from "./service/user.service";
import {personalFollowComponent} from "./components/personal-follow-component";
import {PersonalJoinComponent} from "./components/personal-join-components";
import {personalSetComponent} from "./components/personal-set.component";
import {ForgetPaswordComponent} from "./components/forget-component";
import {ForgetNextPaswordComponent} from "./components/forget-next-component";
import {ResetPaswordComponent} from "./components/reset-pas";
import {RegistComponent} from "./components/signup-componet";
import {LoginService} from "./service/login.service";

import { FileUploadModule } from 'ng2-file-upload';

import { UserRankingComponent} from "./components/user-ranking-componnet";
import {UserAggrement} from "./components/aggrement-componnet";
import { FeedBackComponent} from "./components/feedback";


@NgModule({
  declarations: [UserMessageComponent, PersonalMessageComponent,
    personalFollowComponent,PersonalJoinComponent, personalSetComponent,ForgetPaswordComponent,ForgetNextPaswordComponent,ResetPaswordComponent,RegistComponent,
    UserRankingComponent,UserAggrement,FeedBackComponent
    ],
  imports: [
    BrowserModule,
    FormsModule,
    ReactiveFormsModule,
    RouterModule.forChild(userRoutes),
    CommonModule,

     FileUploadModule

  ],

  exports:[
    UserMessageComponent,
    PersonalMessageComponent,
    personalFollowComponent,
    PersonalJoinComponent,
    personalSetComponent,
    ForgetPaswordComponent,
    ForgetNextPaswordComponent
    ,ResetPaswordComponent,
    RegistComponent,
    UserRankingComponent,
    FeedBackComponent
  ],
  providers: [
    UserService,
    LoginService
  ],

})
export class UserModule { }
